package com.fubowen.lepton.bean

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import com.fubowen.lepton.conf.AnnotationConfig


@Entity(indices = [Index(value = ["data","dataSource"], unique = true)])
data class Home constructor(
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,
    var icon: String? = "",
    @AnnotationConfig.IconSource
    var iconSource: Int = AnnotationConfig.ICON_SOURCE_RESOURCE,
    var data: String? = "",
    @AnnotationConfig.DataSource
    var dataSource: Int = AnnotationConfig.DATA_SOURCE_URL
)